﻿using System.Drawing;
using System.IO;

namespace FireStarterModeller
{
    public class ImageResources
    {
        public static Image GetImage(string imageFileName)
        {
            Stream stream = typeof(ImageResources).Assembly.GetManifestResourceStream(string.Format("FireStarterModeller.Images.{0}", imageFileName));
            if (stream == null) return null;
            Image image = Image.FromStream(stream);
            return image;
        }
    }
}
